package com.ruoyi.tjbb.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tjbb.mapper.SysTjbbCsbjclmxMapper;
import com.ruoyi.tjbb.domain.SysTjbbCsbjclmx;
import com.ruoyi.tjbb.service.ISysTjbbCsbjclmxService;

/**
 * 超速报警车辆明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-26
 */
@Service
public class SysTjbbCsbjclmxServiceImpl implements ISysTjbbCsbjclmxService 
{
    @Autowired
    private SysTjbbCsbjclmxMapper sysTjbbCsbjclmxMapper;

    /**
     * 查询超速报警车辆明细
     * 
     * @param id 超速报警车辆明细主键
     * @return 超速报警车辆明细
     */
    @Override
    public SysTjbbCsbjclmx selectSysTjbbCsbjclmxById(Long id)
    {
        return sysTjbbCsbjclmxMapper.selectSysTjbbCsbjclmxById(id);
    }

    /**
     * 查询超速报警车辆明细列表
     * 
     * @param sysTjbbCsbjclmx 超速报警车辆明细
     * @return 超速报警车辆明细
     */
    @Override
    public List<SysTjbbCsbjclmx> selectSysTjbbCsbjclmxList(SysTjbbCsbjclmx sysTjbbCsbjclmx)
    {
        return sysTjbbCsbjclmxMapper.selectSysTjbbCsbjclmxList(sysTjbbCsbjclmx);
    }

    /**
     * 新增超速报警车辆明细
     * 
     * @param sysTjbbCsbjclmx 超速报警车辆明细
     * @return 结果
     */
    @Override
    public int insertSysTjbbCsbjclmx(SysTjbbCsbjclmx sysTjbbCsbjclmx)
    {
        return sysTjbbCsbjclmxMapper.insertSysTjbbCsbjclmx(sysTjbbCsbjclmx);
    }

    /**
     * 修改超速报警车辆明细
     * 
     * @param sysTjbbCsbjclmx 超速报警车辆明细
     * @return 结果
     */
    @Override
    public int updateSysTjbbCsbjclmx(SysTjbbCsbjclmx sysTjbbCsbjclmx)
    {
        return sysTjbbCsbjclmxMapper.updateSysTjbbCsbjclmx(sysTjbbCsbjclmx);
    }

    /**
     * 批量删除超速报警车辆明细
     * 
     * @param ids 需要删除的超速报警车辆明细主键
     * @return 结果
     */
    @Override
    public int deleteSysTjbbCsbjclmxByIds(Long[] ids)
    {
        return sysTjbbCsbjclmxMapper.deleteSysTjbbCsbjclmxByIds(ids);
    }

    /**
     * 删除超速报警车辆明细信息
     * 
     * @param id 超速报警车辆明细主键
     * @return 结果
     */
    @Override
    public int deleteSysTjbbCsbjclmxById(Long id)
    {
        return sysTjbbCsbjclmxMapper.deleteSysTjbbCsbjclmxById(id);
    }
}
